#define _CRT_SECURE_NO_WARNINGS
#include"Heap.h"

//测试函数
void TestHeap()
{
	//创建
	HP hp;
	//初始化
	HeapInit(&hp);
	//入堆
	int a[] = { 27, 15, 19, 18, 28, 34, 65, 49, 25, 37 };
	for (int i = 0; i < sizeof(a) / sizeof(int); ++i)
	{
		HeapPush(&hp, a[i]);
	}
	///打印
	HeapPrint(&hp);
	//入堆 -- 打印
	HeapPush(&hp, 10);
	HeapPrint(&hp);
	//出堆 -- 打印
	HeapPop(&hp);
	HeapPrint(&hp); 
	HeapPop(&hp);
	HeapPrint(&hp);
}
